package com.mall.service;

import com.mall.common.ServiceRespones;
import com.mall.pojo.User;



public interface IUserService {
    /**
     * 登录
     * @param username
     * @param password
     * @return
     */
    ServiceRespones<User> login(String username, String password);

    /**
     * 注册
     * @param user
     * @return
     */
    ServiceRespones<String> register(User user);

    /**
     * 校验
     * @param str
     * @param type
     * @return
     */
    ServiceRespones<String> checkValid(String str, String type);
}
